package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.GiftRecordEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 注册会员送礼记录表模型类
 *
 * @author pbuilder generated
 * @date 2019-12-04 21:10:51
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class GiftRecord extends GiftRecordEntity {

	/**
	 * 构造一个空注册会员送礼记录表模型对象
	 */
	public GiftRecord(){
		super();
	}

	/**
	 * 依据实体对象的信息构造一个注册会员送礼记录表模型对象
	 *
	 * @param entity 实体对象
	 */
	public GiftRecord(GiftRecordEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个注册会员送礼记录表模型对象
	 *
	 * @param other 其它对象
	 */
	public GiftRecord(GiftRecord other){
		super(other);
	}


	@Override
	public String getId() {
		return id;
	}

	/**
	 * 设置
	 *
	 * @param id
	 * @return 当前对象
	 */
	public GiftRecord id(String id) {
		this.id = id;
		return this;
	}

	@Override
	public String getGiveId() {
		return giveId;
	}

	/**
	 * 设置订单id或者券包id
	 *
	 * @param giveId 订单id或者券包id
	 * @return 当前对象
	 */
	public GiftRecord giveId(String giveId) {
		this.giveId = giveId;
		return this;
	}

	@Override
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置用户id
	 *
	 * @param userId 用户id
	 * @return 当前对象
	 */
	public GiftRecord userId(String userId) {
		this.userId = userId;
		return this;
	}

	@Override
	public String getBusdId() {
		return busdId;
	}

	/**
	 * 设置商圈Id
	 *
	 * @param busdId 商圈Id
	 * @return 当前对象
	 */
	public GiftRecord busdId(String busdId) {
		this.busdId = busdId;
		return this;
	}

	@Override
	public String getGiftId() {
		return giftId;
	}

	/**
	 * 设置礼物id
	 *
	 * @param giftId 礼物id
	 * @return 当前对象
	 */
	public GiftRecord giftId(String giftId) {
		this.giftId = giftId;
		return this;
	}

	@Override
	public LocalDateTime getInvalidTime() {
		return invalidTime;
	}

	/**
	 * 设置礼物失效时间
	 *
	 * @param invalidTime 礼物失效时间
	 * @return 当前对象
	 */
	public GiftRecord invalidTime(LocalDateTime invalidTime) {
		this.invalidTime = invalidTime;
		return this;
	}

	@Override
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * 设置创建人ID
	 *
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
	public GiftRecord createdBy(String createdBy) {
		this.createdBy = createdBy;
		return this;
	}

	@Override
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}

	/**
	 * 设置创建时间
	 *
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
	public GiftRecord createdTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
		return this;
	}
}
